package com.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 直播表
 * </p>
 *
 * @author sly
 * @since 2023-12-23
 */
@Getter
@Setter
@TableName("t_live")
@ApiModel(value = "LiveEntity对象", description = "直播表")
public class LiveEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("userId")
    private Long userId;

    @ApiModelProperty("直播链接")
    @TableField("liveUrl")
    private String liveUrl;

    @ApiModelProperty("封面链接")
    @TableField("liveCover")
    private String liveCover;

    @ApiModelProperty("视频标题")
    @TableField("liveTitle")
    private String liveTitle;

    @ApiModelProperty("直播类型（1对1、1对多）")
    @TableField("liveType")
    private String liveType;

    @ApiModelProperty("直播在线人数")
    @TableField("liveOnline")
    private Integer liveOnline;

    @ApiModelProperty("所在分区：0动画 1音乐 2游戏 3舞蹈 4 时尚")
    @TableField("livePartition")
    private String livePartition;

    @ApiModelProperty("直播简介")
    @TableField("liveIntroduction")
    private String liveIntroduction;

    @ApiModelProperty("创建时间")
    @TableField("createTime")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("updateTime")
    private Date updateTime;

    @ApiModelProperty("逻辑删除")
    @TableField("isDel")
    private Integer isDel;


    @TableField(exist = false)
    private Integer currentSize = 30;
    @TableField(exist = false)
    private Integer currentPage = 1;

    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String nickName;
    @TableField(exist = false)
    private String userCover;
}
